package cs275.ants.graphics;
import com.jmex.effects.particles.ParticleMesh;

public class Particle {
	private ParticleMesh particleMesh;
	private int MAX_NUM_PARTICLE=10;
	private float pheromoneLevel=0.0f;
	public ParticleMesh getParticleMesh() {
		return particleMesh;
	}
	public void setParticleMesh(ParticleMesh particleMesh) {
		this.particleMesh = particleMesh;
	}
	private int getNumberOfParticle(){
		return Math.round(pheromoneLevel*MAX_NUM_PARTICLE);
		
	}
	public void addPheromoneLevel(float level){
		pheromoneLevel+=level;
		particleMesh.setReleaseRate(getNumberOfParticle());
	}
	public void resetPheromoneLevel(){
		pheromoneLevel=0;
	}
}
